#pragma  once
#include<stdio.h>
#define NUM 1024
#define BUFF_NONE 0x01
#define BUFF_LINE 0x02
#define BUFF_ALL 0x04


typedef struct MY_FILE
{
  int fd;
  int flags;//刷新方式
  char buffer[NUM];//缓冲区
  int current;

}MY_FILE;
MY_FILE* my_fopen(const char* path, const char* mode);
size_t my_fwrite(const void* ptr,size_t size,size_t nmemb,MY_FILE* stream);
int my_fclose(MY_FILE*);
int my_fflush(MY_FILE*);
